package List;

public class TestDemo {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        /*myLinkedList.createList();
        myLinkedList.print();
        myLinkedList.addFirst(88);
        myLinkedList.addLast(98);
        System.out.println(myLinkedList.contains(66));
        myLinkedList.print();
        System.out.println(myLinkedList.size());
        */
        myLinkedList.addLast(22);
        myLinkedList.addLast(42);
        myLinkedList.addLast(22);
        myLinkedList.addLast(52);
        myLinkedList.addLast(22);
        myLinkedList.addLast(42);
        myLinkedList.addLast(22);
        //myLinkedList.addIndex(2,25);
        //myLinkedList.remove(22);
        myLinkedList.removeAllkey(22);
        myLinkedList.print();
        myLinkedList.clear();
        System.out.println("===============");
    }
}
